{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">账户状态</label>
            <div class="layui-input-inline">
                {if $data.is_auth =='99'}
                <button class="layui-btn layui-btn-normal">审核通过</button>
                {elseif $data.is_auth =='2'}
                <button class="layui-btn layui-btn-danger">审核不通过</button>
                {elseif $data.is_auth =='1'}
                <button class="layui-btn">信息待审核</button>
                {else}
                <button class="layui-btn layui-btn-warm">未审核</button>
                {/if}
            </div>
            <div class="layui-form-mid layui-word-aux">账户审核通过后，请联系我们修改信息！客服热线：400-6622-003</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">到期时间</label>
            <div class="layui-input-inline">
                <button class="layui-btn layui-btn-danger">{$data.exp_time}</button>
            </div>
            <div class="layui-form-mid layui-word-aux"></div>
        </div>
        <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">认证名称</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="shopname" value="{$data.shopname|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input" {if $data.is_auth =='99'}disabled{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="mobile" value="{$data.mobile|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input" {if $data.is_auth =='99'}disabled{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件类型</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <select name="cert_type" {if $data.is_auth =='99'}disabled{/if}>
                        <option value="">请选择证件类型</option>
                        <option value="1" {if condition="isset($data) and $data.cert_type eq 1"}selected="selected"{/if}>身份证</option>
                        <option value="2" {if condition="isset($data) and $data.cert_type eq 2"}selected="selected"{/if}>营业执照</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件号码</label>
                <div class="layui-input-inline"  style="width:500px;">
                    <input type="text" name="cert_number" value="{$data.cert_number|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="layui-input" {if $data.is_auth =='99'}disabled{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">证件图片</label>
                <div class="layui-input-inline"  style="width:500px;">
                    {if $data.is_auth =='99'}
                    <img src="{$data.cert_image|default=''}" width="500">
                    {else}
                    <input type="text" name="cert_image" value="{$data.cert_image|default=''}" autocomplete="off" placeholder="" class="layui-input">
                    <button type="button" class="layui-btn layui-btn-primary layui-btn-position ajax-images"><i class="fa fa-file-image-o"></i> 选择图片</button>
                    {/if}
                    
                </div>
            </div>
            {if $data.is_auth !='99'}
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
            {/if}
        </form>
    </div>
</div>
{/block}
